package commons.base.hash;

import com.google.common.hash.HashCode;
import com.google.common.hash.Hashing;

public class Demo{
	public static void main(String[] args) {
		String s = "qqqq";
		HashCode hashCode = Hashing.murmur3_32().hashBytes(s.getBytes());
		System.err.println(hashCode.getClass().getName() + "," +hashCode.bits());
		System.err.println(Hashing.murmur3_128().hashBytes(s.getBytes()).getClass().getName());
		long r = hashCode.asInt();
		System.err.println(r);
	}
}